﻿#datetimeRange {
/*  width: 100%; */
    width: 500px !important;
    max-width:500px;
    padding: 10px;
    font-size: 16px;
    border: 0px;
}

.picker-popup {
    position: absolute;
    background: #e9e9e9;
    border: 1px solid #ccc;
    padding: 20px;
    display: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    width: 100%;
    left:0px;
    border-radius: 10px;

}

.calendar-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.calendar {
    flex: 1;
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

    .calendar-header button {
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
    }

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    font-size: 14px;
    text-align: center;
    color: #555;
}

td {
    padding: 6px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

    td.disabled {
        position: relative;
        color:#6d6d6d;
        text-align: center;
        cursor: not-allowed;
        pointer-events: none;
        font-weight: normal;
    }

        td.disabled .cross {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 20px;
            color: red;
            opacity: 0.7;
            pointer-events: none;
        }

    td:hover {
        /*background: #eee;*/
        background: #ee4037;
        color: #fff;
    }

.selected {
    background-color: navy !important;
    color: white;
    font-weight: bold;
}

.in-range {
    background-color: #ccd6f5;
}

.time-select {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

    .time-select div {
        flex: 1;
        text-align: center;
    }

select {
    padding: 5px;
    margin: 0 2px;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

    .controls button {
        padding: 8px 20px;
        font-weight: bold;
        border-radius: 4px;
        border: none;
    }

.apply-btn {
    background-color: navy;
    border: 2px solid navy;
    color: white;
    border-radius: 7px;
    padding: 8px 20px;
    font-weight: bold;
}

.cancel-btn {
    padding: 12px;
    border-radius: 7px;
    background-color: #dc3545;
    border: 1px solid #dc3545;
    color: #fff;
}

.range-output {
    margin-top: 8px;
    text-align: center;
    color: navy;
}
@media(max-width:768px) 
{ 
    .calendar-container {
        flex-direction:column;
    }

    .picker-popup {
        padding:5px;
        left:0;
    }

    #rangeLabel {
        display: none;
    }

    .controls {
        justify-content: space-around;
    }
    #datetimeRange {
        max-width: 100%;
        padding-left: 37px;
    }

    .loc::before {
        left: 14px;
        top: 7px;
        position:absolute;
    }
}